<?php
require 'core/header.php';


if (isset($_GET['forumid'])) {
    $forums = sql_forumid_forums($_GET['forumid']);
    $auth_edit = $forums['auth_edit'];
}
if (isset($_SESSION['rank']) && $_SESSION['rank'] == 10) {
    goto A;
} elseif (isset($auth_edit) && $auth_edit != $_SESSION['rank']) {
    header("Location:forum.php");
} elseif (!isset($_SESSION['rank']) || !isset($auth_edit)) {
    header("Location:forum.php");
}
A:
adminArea();
adminUser();
adminKey();
require 'core/footer.php';
?>
